package com.example.environment;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author wangbin
 */
public interface EnvironmentRepository extends JpaRepository<Environment, Long> {
    @Query("select e from Environment e left join fetch e.tables")
    List<Environment> findAllFetch();
}
